<template>
  <el-timeline>
    <el-timeline-item :timestamp="item.start_time" placement="top" v-for="(i,item) in todoList" :key="i">
      <el-card>
        <h4>Update Github template</h4>
        <p>Tom committed 2018/4/12 20:46</p>
      </el-card>
      <el-card>
        <h4>Update Github template</h4>
        <p>Tom committed 2018/4/12 20:46</p>
      </el-card>
    </el-timeline-item>
  </el-timeline>
</template>

<script>
import axios from '@/utils/axios'

export default {
  data() {
    return {
      todoList: []
    }
  },
  created() {
    axios.get('/todoTask/getTaskList').then(res => {
      this.todoList = res.taskList.Data
      console.log(typeof res.taskList.Data[0].start_time);
    })
  }
}
</script>

<style scoped>

</style>